package errs

// im业务错误码 20000 - 50000
const (
	CodeUserNoExist   = 20000
	CodePasswdInvalid = 20001
	CodeGenTokenFail  = 20002
	CodeNotContact    = 20003
)

var (
	ErrUserNoExist   = New(CodeUserNoExist, "用户名或密码不匹配") // 防止暴力破解，此处统一返回该提示
	ErrPasswdInvalid = New(CodePasswdInvalid, "用户名或密码不匹配")
	ErrGenTokenFail  = New(CodeGenTokenFail, "服务异常，请稍后再试")
	ErrNotContact    = New(CodeNotContact, "不是好友关系，请先加好友")
)
